Page({
  data: {
    src: "",
    info: {},
  },
  onLoad() {
    const eventChannel = this.getOpenerEventChannel();
    eventChannel.on("homeEvent", (info, src) => {
      this.setData({
        info,
        src,
      });
    });
  },
  // 查看详情
  to_result() {
    wx.navigateTo({
      url: "/pages/result/result",
      success: (result) => {
        result.eventChannel.emit("successEvt", this.data.info);
      },
    });
  },
});
